MVC design pattern exercise