Finished exercise 1.9