The generals of the army were completely overhauled — of the 143 Prussian generals in 1806, only Blücher and Tauentzien remained by the Sixth Coalition; many were allowed to redeem their reputations in the war of 1813. The officer corps was reopened to the middle class in 1808, while advancement into the higher ranks became based on education. King Frederick William III created the War Ministry in 1809, and Scharnhorst founded an officers training school, the later Prussian War Academy, in Berlin in 1810.