DNA contains genetic codes that determine an organism's traits. It is transcribed into mRNA which carries codes to the ribosomes for translation into proteins. During replication, DNA unwinds and each strand serves as a template to produce a complementary strand, duplicating the genetic material in daughter cells. RNA assists in protein synthesis by carrying codes from DNA and attaching to the ribosome along with tRNA which binds amino acids to form polypeptide chains according to the mRNA codes.