Finished q11 in chapter 3 functions.