added cpp.h/cpp.cpp, thes file conatin some basic function definitions