The answer came from Mendel
Of course we all know it was Gregor Mendel who provided the
answer.  A contemporary of Darwin, Mendel showed that traits were
carried from generation to generation in a predictable manner and that
the information is carried by “factors” (the term genes was not coined
until the 1900's by Columbia University professor Walter Sutton).
Mendel’s studies provided the means by which new traits could be
acquired by an organism as it evolved. But what determines the actual
traits?  What material makes our eyes brown, determines where we eat
meat, plants or both, mammal or insect?  The answer is proteins.
Genes determine traits and they carry the information about the
properties of every protein.  That information is a blue print on how to
make each protein.  So what are proteins?  This is where biochemistry
begins.