MVC handling of the repository + creation of controller class to make the link between view and model