What best describes how the Heian society of Japan worked?