Genetics is the scientific study of