Finished exercise 1.6