Modified repositories.
Created new repository class.