Finished main.cpp