Scala programs for learning