Added out_stream setting to example