Implement Traversable interface.