Edited histogram class. Still needs work.