Histogram working and unit tests added