Small implementation of automatic code generation approach.