new stream example in md