Macromolecular compounds containing organic and inorganic sequences