Added TermExtractor class