Sample codes on Stream.