add enums
add first test
Use enumerated types as function parameters