Understand Object and Class in Scala