common substance in living cells, nucleic acids, that are the workhorses of heredity. These molecules are composed of a sugar, phosphates, and four substances called bases that are strung together in chains. They come in two varieties: ribonucleic acid (RNA) and a similar molecule that lacks one oxygen atom and thus is called deoxyribonucleic acid (DNA).