implemented deleteContact() and  updateContact()