add sample for Preferences,Setting