Data structure with ids

Yes, you’ll have to subclass. You can use the updateAttrs helper to make adding attributes easier.