start of trying to do a histogram