add recognizer.cpp