added histogram class (todo drawing)