changed exmaple to be of a simple histogram