First exercice of the C++ training