add iterator feature of list class.