Astronomy and cosmology