Introduced Generics for the InMemoryRepository with testing in mind. Works as a charm.