more C++ exercises