how hereditary diseases are passed from one generation to another.