updated just Exercise 3.10