What happened in Japan that made their government different from china in the ninth century?