The Neo-Confucian theory that dominated Japan during the Tokugawa Period recognized only four social classes–warriors (samurai), artisans, farmers and merchants–and mobility between the four classes was officially prohibited. With peace restored, many samurai became bureaucrats or took up a trade. This is what I saw when I looked on the internet. That’s all I could find. I hope this helped:) sorry if I am wrong