Bug Fixing : creating enum by extending

Bug Fixing : creating enum by extending