Exercise 1-15: Functions