Accumulating data – scan operator