Added exercise 14 to functions