Iterator class working.