Fixing Lauis Reasoner's mistake
accumulator procedure. starting chapter 3