Knighthood changed with the code of chivalry and became a privilege of nobility