a school project in object oriented c++