Better order, repository and first mvc

Better order for the models, created a repository and accessors, and
first model-view-controller