exercise 12 changes as mentioned