The emergence of science