This looks like an unrolled loop. How could you iterate over the roll and get the same results?