Implemented constructor, addContact, searchAddressBook, searchAndDelete,
and isValidContact methods for AddressBook.