exercises from book about C++