Three Essays in Urban Economics