created FrequencyAnalyzer class