created enum and getEnum-method