Phone book class file saving logic