MVC pattern implemented.