plotting histograms implemented