Three Essays on the Housing Market