Chapter 17 abs

Repetition - could you not have put this at the start of your loop with a wee bit of reworking?