exercise 3.3 solutions