Inheritance in Scala