FEATURE: ported a class from a java sample to scala and scala-fied it as much as possible
FEATURE: ported the ordering example class from a java sample to scala and scala-fied it as much as possible