finished exercise 2-2