update cp.cpp, in.text, and other files in the lab repository