Both Europe and Japan had a "cast system" you could say, where peasants worked the land that the nobles owned. (The Japanese had their own terms for the people, I just can't remember them.) During this time, Europe had knights and these Knights had a code called Chivalry. Over in Japan, there were Samurai with a very similar code which was called Bushido. Hope this helps.