add contacts requires and clear method for memory repo