Extragalactic Astronomy and Cosmology: An Introduction