Using base-element and sub-element for inheritance