Fix Chapter 7 Exercise 1