Two examples for handy stream wrappers.