Exercise 18, Functions