An alternative to Scala Enumeration