addToContacts function created