ADD: sample code generation