use fs.write in the coffee example as well