provide stateful example