Restored main.cpp