Implemented simple MVC