Chapter 12: User-defined functions