Histograms and Curve fitting