modified controller classes and added routes
added a first draft of the model class