Finished exercise on page 50