Exercise 1.10...attempt 2