Added private inner class myIterator