for Exercise 3