added example of RepositoryFactory