C++ Objects course work