Implemented a class for FrequencyDistributions