starting plot code for histograms