Finished exercise 22