Generation of code