add stream writer example