A sealed trait will do fine, yes.