Exercise 3 solutions