finished exercise 2.2 and started on 2.3