streams example extended