Essays in asset pricing and real estate