completed implementation of the repository classes