created Preferences class