MVC solution from assignment 5