Sample code of http://doc.akka.io/docs/akka/2.3.2/scala/fsm.html