now using two enums embedded in a class