Not only did this highly progressive leader produce Japan 's first written constitution and legal code , thus laying the foundations of an organized state , he is also credited with having introduced the concept of wa ( harmony ) as the fundamental value shaping the Japanese character .
His constitution included several basic human rights , such as freedom of religion and freedom of assembly .