EM base class added

- EM base class added
is it possible to sg_add a templated data attribute? I think not but maybe I don't know the right way.