phonebook implemented in java