Exercises from book about C++