added histogram calculator