doing exercise 4