add output stream example.