How does DNA help with the transfer of genetic material from parents to offspring?