distribution of frequency using histogram