C++ Assignment 1