Exercise 14: Writing and using functions