Implementing repository base