Scala Companion Object Example