What types of jobs were available for citizens during the Ming dynasty? and how were there cities built?