What can we learn from quasar absorption spectra?