code and write