Implementation of a new "Enum" emulation class