Finished exercice 6