Update state example