adding model class for Enums (not fully tested yet)