exercise 3.2 written up