biomaterials with logic gates