A simple enum implementation