minimal working with enums

see #23