lab3part1 --- 2nd

iterator working