added new histogram class
added mean method to histogram
hist now using Histogram class