Completed Main.cpp; ready for debugging.