Separating the models from the code