Code generation for fun and profit

Code generation for fun and profit