finished exercise 9