Exercise 8 changes as mentioned