Changed list to inherit from iterable