ABS chapter 4

Ready for review.
I think the point of this was to reuse your total() subroutine from exercise 1. Meh.