Finished exercise3