commit to lab partner - updated cp.cpp fully working