Finished q10 in chapter 3 functions.