write MVC