Init codes for Histogram