Genetics deals with the molecular structure and function of genes, gene behavior, patterns of inheritance from parent to offspring, and gene distribution, variation and change in populations. Genes correspond to regions within DNA, a molecule composed of a chain of four different types of nucleotides—the sequence of these nucleotides is the genetic information organisms inherit.