The molecules inside cells that carry genetic information and pass it from one generation to the next. Also called DNA.