Basic implementation of repository