In 1884, he was wandering to Shanghai where he met a missionary. The missionary's propagation was to one religionand he went to the Protestant church. To stay in china he had to learn at Dungwu college. Later Yun graduated at Dungwu college and went to America. He was a self-supporting student, because his homes where not propertys. 