Create cg.cpp