Added out-of-bounds lines to function definitions in Exercise 1.14.
Code and explanation for answer to Exercise 1.14.