Finished exercise 24