Phone-directory using class