Exercises from the Thinking in C++ book