What document was written to rule the new nation