added iterator exercise