Implementing MVC framework