Scala phonebook implementation