adds FileOutputStream to provide a working example