CPPSHAPE CODE