Finished exercise 5.50