Exercise 118: Function design complete