A simple phonebook class written in C++