Create a repository class