Another way to say "Laws are the rules of a society" is "The rules of a society are encoded in laws."