extracte code from md to ScalaResults.scala