Learn iterator pattern.