Implemented histogram