Added model

Built the model for MVC