Making the example more correct

accum was not necessary