How does a state work?