How does heredity affect flexibility?