made a test for iterator within applications and wrote iterator