An empirical model to describe rapidity density and transverse momentum distributions