how to create a composite element ?