How to create and use streams?