Added stateful example including standalone client