Create mcgs.cpp

Initial version