Moses gave the law to the children of Israel, but before Samuel came they did not have a set of bylaws, a constitution. Samuel taught the people the bylaws, the constitution, the practice, the customs, the manners, the ordinances, and the rules of how to practice the kingdom of God on earth.