added simpler example for AsyncState