add exposing state example
improve exposing state example