main.cpp now fully generated