Added HasNextIterator sample