Implemented MVC Structure