Finished exercise 6