An introduction to mortgages