Finished exercise 2_2.