Code with the states inside.