Added sample Preference class