extracte code from ScalaResults.md to ScalaResults.scala

extracte code from ScalaResults.md to ScalaResults.scala