Finished exercise 1 for chapter 13 (Functions)