Code example for Preferences

Methods: flush, put, putInt