Creating 1-Dimensional and 2-Dimensional Histograms