An introduction to the science of cosmology