Playing with Companion Object in Scala