Updated exercise 4.10