Rules for investing in real estate