Common extensions for Scala