EM base class added

- EM base class added
I think you should sg_add the data attribute.