If before you buy a house you have to pay rent, then afterwards you can pay for mortgage instead