added examples of read and write streams