Three Essays on Housing Markets