What was the purpose of the code of chivalry?
A. To promote learning and education.
B. To spread Christianity.
C. To prevent lawlessness.
D. To defeat German invaders.