UML and iterator pattern