Scala helper classes, utility code and other bits and pieces