Using __iter__ for stream methods