Implemented the basic MVC structure