first step toward a MVC architecture