Finished exercise2_1.