Added classes for histogram data calculation.