add require('fs') to example