Processing collections with the for statement