Start to implement histograms at different levels