goal = where-to-live.

rule-1:  if climate = snow
	then mountains = true.

rule-2:  if climate = sun
	then south = true.

rule-3:  if south = true and
		like-water = yes
	then ocean = true.

rule-4:  if south = true and
		like-water = no
	then ocean = false.

rule-5:  if mountains = true and
		ski = yes
	then where-to-live = 'Try a ski resort like Breckenridge'.

rule-6:  if mountains = true and
		ski = no
	then where-to-live = 'Try Vail, there are many other activities besides skiing'.

rule-7:  if ocean = true
	then where-to-live = 'I recommend the Cayman Islands'.

rule-8:  if ocean = false
	then where-to-live = 'How about Las Vegas'.

question(climate) = 
	'Do you like snow or the sun?'.
legalvals(climate) = 
	[snow, sun].

question(ski) = 
	'Do you like to ski?'.
legalvals(ski) = 
	[yes, no].

question(like-water) =
	'Do you want to live by the water?'.
legalvals(like-water) = 
	[yes, no].
