Exercice 3 solved