add example for stream