Added Iterator interface.
Updated Code.