Doing exercise 3