Create write.lua