exercice 2.2.2 def