exercice 2 modified with victor remarks