using enum to define a new data type