Excercise 3.2 (first part)