Framework of my C++ homework