Exercise 41 before Extra Credit