Nyaya philosophy was founded by the sage Gotama around 600 BC. It is primarily concerned with epistemology and the conditions of obtaining valid knowledge. Nyaya divides reality into 16 categories or "padarthas" including the sources and objects of knowledge, doubt, inference, and different types of debate. Nyaya recognizes four valid sources of knowledge - perception, inference, comparison, and testimony. It developed a theory of causation including three types of causes. Nyaya inquires into the causes of suffering and proposes the law of karma as guided by an intelligent principle.