getContacts method added