Assignment 1 for OOP in C++