How do states and territories make their laws?