Finished exercise9