Update example for more complex state interactions