Question: Who wrote the first code of law that was not subject to the king's will?
Answer: Thomas Jefferson et al.
Natural Questions answer: John Adams (from the Wikipedia article "Rule of law")