added histogram data structure