Cosmology as a science