Updating the sample code. Included a list comprehension example for
Scala.