Finished exercise 1.10