Using groups in Histogram