(There are some examples of molecules families. You have many variants of it encoded in the DNA, and each is optimized for a different task. IIRC the idea is that some molecule is used for two similar thing, then after a lot of generations by a random chance you get two copies of the code in the DNA, then after a lot of generations each copy is used for one task, then after a lot of generations each copy evolves to be optimized for it's task. See the variants in https://en.wikipedia.org/wiki/Hemoglobin#Types_in_humans and also the distant variant https://en.wikipedia.org/wiki/Myoglobin )