Again, the use of iterators would save some lines (2-3) of code. But the saving is not that big.