Chapter 48. Writing functions