Using a dictionary as a repository