Learn to use iterators properly