finished exercise 6