Scala Inheritance Example