Histogram own class