# The Book of Ruby - http://www.sapphiresteel.com

module Happy
	def Happy.mood
		return "happy"
	end
	
	def expression
		return "smiling"
	end
end

module Sad
	def Sad.mood
		return "sad"
	end
	
	def expression
		return "frowning"
	end
end

class Person
	# change the order of inclusion and run the program again
	include Happy
	include Sad
	attr_accessor :mood
	def initialize
		@mood = Happy.mood
	end
end

p1 = Person.new
puts(p1.mood)
puts(p1.expression)

