changing Hist from struct to class

+proper encapsulation