Updated exercise 4.8