Then we need to store outputStream as a property. I found this more readable and useful, but sure.