static void Main(string[] args) { int topX = GetNumOfTopResultsFromConfig(); string analysisTxt = GetFilePathFromConfig("Project", "Text1", "AnalysisText"); string stopWordsTxt = GetFilePathFromConfig("Project", "Text1", "StopWords"); TextMutator ts = new TextMutator(stopWordsTxt, analysisTxt, "project"); CalculationEngine ce = new CalculationEngine(ts.StemmedWords); List <KeyValuePair <string, int> > TopTerms = ce.GetTopTerms(topX); foreach (var s in TopTerms) { Console.WriteLine($"{s.Key}: {s.Value}"); } }