Created models and base repository