added cp.cpp