Implemented model for MVC