add enumeration generation
update example with Enumeration