Code generator for work