trying to apply MVC pattern