Create generator.cpp