prototype for MVC