In 1838 the Munich politician and businessman Von Maffei purchased a small hammer mill for 57,000 Gulden in Hirschau, "a postal hour distant from Munich, at the end of the English Gardens", as the art and trade newspaper described it in 1852. Maffei was pursuing a concrete goal: He was pressing ahead with all of his powers the construction of the rail line Munich-Augsburg and was irritated that the expensive locomotives from England were assembled on the spot by English experts. Without hesitation this representative to the Bavarian government's lower house hired the engineer Joseph Hallab – he became the manager of the iron works in Hirschau. The idea of building locomotives in Bavarian took fire. On September 9, 1841 Maffei was able to apply for a patent from King Ludwig I for the first locomotive. The Wittelsbach king accepted: "It is with great pleasure that I experienced the building of the steam car from Munich and expressed the wish that I would like to give it a name; it should be called the 'Münchner'." It is the start of a history of success: In 1851 the Maffei steam locomotive "Bavaria" was chosen for mastering the enormous grade over the Semmering – an invaluable image coup. By 1931, according to the Bavarian Historical Lexicon, 5,459 locomotives had been built in the Munich works of J. A. Maffei – in addition, railroad bridges, stationary steam engines, and steam ships.