C++ Practice - from Beginning C++ Book