Taihō Code
The lawmakers who wrote the Taihō Code copied things from Chinese laws.  This was the Tang Dynasty in China.  But the Japanese lawmakers wrote the Taihō Code to give more government jobs to Japanese noblemen.  This was different from the Tang Dynasty laws, which said anyone from any family could work for the government if they took and passed the right tests.