-Finished exercise 2.9