add streaming examples to sample code