simple exercise to demonstrate MVC design