started to implement EventStore.fromRepository