writeCode