Working through problems in C++ for practice