example of how to create a histogram quickly from a source