Gregor Mendel's years of research with green and yellow peas showed that such a thing must exist. Colors and other traits vary depending on many factors, such as temperature and soil content, but something is preserved whole; it does not blend or diffuse; it must be quantized. Mendel had discovered the gene, though he did not name it. For him it was more an algebraic convenience than a physical entity.