exercices 04, 05 and 06