getContacts function is added