Implement getValue in Histogram