Simplified InMemoryRepository