Added data persisting code to ContactManagerImpl