In the 1940s, genes were defined as the units of hereditary information, each of which produces a particular protein. With discovery of the genetic code, a gene could be recognized as a particular DNA sequence that carries the information needed to produce a gene product, such as a peptide or RNA molecule.