updated HourOfDayPreference to have getValue and made setValue public