added MyIterator.java (Iterator pattern)