Histogram code added