add processor.cpp and processor.h