Code form the book Akka Concurrency by Derek Wyatt