Add training data
Scala implementation
added test harness