added histogram class