Solutions to Prog3 Stuff - C++