create class TextProcessor