Added a getAllContacts method to display all contacts.