add method : getHistogram