Companion Objects and Class Methods in Scala