consolidated get_phone and set_phone into get_properties and set_properties. Also moved main() to the end.