Adding FreqDist and test class.