A good reason to use sealed traits and classes in Scala