model layer example