Ploting a histogram