finish Exercise 39