Put Iterator in main.js and renamed AbstractIterator to Iterator.