added methods to create eclass and eobject