Implemented simple histogram example