Finished exercise 9