Finished exercise 2(.8)