Updated exercise 3.2 with explanation