code generation for astah