MVC pattern applied