Building up the model part of the MVC