First part of the two exercices