Updated exercise 4.9