added enums to java