Updated Iterator2.js for clarity