How to work with enumerated types.