fixes inconsistent bar/baz variable name in state module example

In the example state module and associated state, the example variable with a default value was named 'bar' in some places and 'baz' in others.  This change standardizes all references to the name 'bar'.