Some example code to show using actors (typed and untyped) vs locks