updated histogram class