finished exercise 4