sample7 model and code generation