scala 2.11.2, updated libraries, adapted code, don't use Seq - it might be mutable