exercise 3.10a