Exercise 6 solutions