Exercise 4 and 9 from AR