first impl of Histogram