During the Song Dynasty the capital was moved to Kaifeng, and they established an enlarged government bureaucracy. As time progressed the Aristocratic ways of the previous dynasties diminished, and a new social class known as Gentries rose up. Also during this dynasty the torturous practice of foot-binding came to be. Throughout this dynasty there was an increase in the use for fine-arts, and perfected the magnetic compass which allowed traders to accurately navigate their environment. Also they invented gunpowder.