histogram class