Demo code from scala.io 2014