Added global state example