Finished exercise sheet 2.