Added second example using actors to capture state.