The roots of Taoism go back at least to the 4th century BCE. Early Taoism drew its cosmological notions from the School of Yinyang (Naturalists), and was deeply influenced by one of the oldest texts of Chinese culture, the I Ching, which expounds a philosophical system about how to keep human behavior in accordance with the alternating cycles of nature. The "Legalist" Shen Buhai (c. 400 - c. 337 BCE) may also have been a major influence, expounding a realpolitik of wu wei. The Tao Te ChingTao Te Ching, a compact book containing teachings attributed to Laozi (Chinese: 老子; pinyin: Lǎozǐ; Wade-Giles: Lao3 Tzŭ3), is widely considered the keystone work of the Taoist tradition, together with the later writings of Zhuangzi. By the Han dynasty (206 BCE-220 CE), the various sources of Taoism had coalesced into a coherent tradition of religious organizations and orders of ritualists in the state of Shu (modern Sichuan). In earlier ancient China, Taoists were thought of as hermits or recluses who did not participate in political life. Zhuangzi was the best known of these, and it is significant that he lived in the south, where he was part of local Chinese shamanic traditions.Female shamans played an important role in this tradition, which was particularly strong in the southern state of Chu. Early Taoist movements developed their own institution in contrast to shamanism, but absorbed basic shamanic elements. Shamans revealed basic texts of Taoism from early times down to at least the 20th century. Institutional orders of Taoism evolved in various strains that in more recent times are conventionally grouped into two main branches: Quanzhen Taoism and Zhengyi Taoism. After Laozi and Zhuangzi, the literature of Taoism grew steadily and was compiled in form of a canon--the Daozang--which was published at the behest of the emperor.