implemented the MetaRepository, tests pass