exercise 7.1 solutions