Record class implement Iterator interface