modified exercices 2 and 6