finished exercise 2 writeup