C++ Assignment for class.