improve, inventors in Germany started work on alternative methods for powering trains. Werner von Siemens built the first train powered by electricity in 1879, and went on to pioneer electric trams. Another German inventor, Rudolf Diesel, constructed the first diesel engine in the 1890s, though the potential of his invention to power trains was not realized until decades later. Between 1897 and 1903, tests of experimental electric locomotives on the Royal Prussian Military Railway in Germany demonstrated they were viable, setting speed records in excess of .Early gas powered "doodlebug" self-propelled railcars entered service on railroads in the first decade of the 1900s. Experimentation with diesel and gas power continued, culminating in the German "Flying Hamburger" in 1933, and the influential American EMD FT in 1939. These successful diesel locomotives showed that diesel power was superior to steam, due to lower costs, ease of maintenance, and better reliability. Meanwhile, Italy developed an extensive network of electric trains during the first decades of the 20th century, driven by that country's lack of significant coal reserves. Dieselization and increased competition World War II brought great destruction to existing railroads across Europe, Asia, and Africa. Following the war's conclusion in 1945, nations which had suffered extensive damage to their railroad networks took the opportunity provided by Marshall Plan funds (or economic assistance from the USSR and Comecon, for nations behind the Iron Curtain) and advances in technology to convert their trains to diesel or electric power. France, Russia, Switzerland, and Japan were leaders in adopting widespread electrified railroads, while other nations focused primarily on dieselization. By 1980, the majority of the world's steam locomotives had been retired, though they continued to be used in parts of Africa and Asia, along with a few holdouts in Europe and South America. China was the last country to fully dieselize, due to its abundant coal reserves; steam locomotives were used to haul mainline trains as late as 2005 in Inner Mongolia. Trains began to face strong competition from automobiles and freight trucks in the 1930s, which greatly intensified following World War II. After the war, air transport also became a significant competitor for passenger trains. Large amounts of traffic shifted to these new forms of transportation, resulting in a widespread decline in train service, both freight and passenger. A new development in the 1960s was high-speed rail, which runs on dedicated rights of way and travels