add streams example code