how real estate notes work