add repository class