Implemented MVC design