lecture 8- Exercise 2