ABS chapter 4

Ready for review.
You've defined your functions above your code, but in this case you could also have defined them afterwards. Do you remember why?