Final HW3 writeup