The exercice in C++ primer