Refactored ArrayList.iterator