added iterator to dictionary class