Tasks from C++ book.