Key to Exercise 3 from Allen