add Recognizer class