Medieval Law and The Foundations of the state