A passage reads: 'The Meiji Restoration of 1868 marked a pivotal rupture with Japan's feudal past, as the new government rapidly dismantled the samurai class system and adopted Western legal codes, technology, and military organization in a deliberate push toward industrialization.' What was the primary goal of the Meiji Restoration according to this passage?