An Introduction to Galaxies and Cosmology