Exercice 6 solved