finished exercise 1.1