Update to main.cpp