Created iterator with foreach