From teleology to evolution