Create SMPreference class to contain multiple preference values.