Solution optional Exercice6