exercise 2 solutions