Finished exercise 10.9