Add dependency injection to store the contacts