Updated main.cpp slightly