Restored Main.cpp