intro to C++ assignment 1