Add class role and abstract operations. Fix undo/redo of relationship.