Implement MVC patern