extracte code from md to ScalaSessionFlash.scala