adding cp source code

Please accept