added correct doctest for histogram