Writeup for exercise 2.4