Adding exercise 14, functions

Exercise 14