An introduction to the Hubbard model