initial code for the histogram