how mortgage loans work.