The NBR D Class (LNER Class J83) is a class of 0-6-0tank locomotives designed by Matthew Holmes for short distance freight and shunting duties on the North British Railway. They were introduced in 1900 and had inside cylinders and piston valves operated by Stephenson valve gear. Forty of these new Class D (LNER J83) engines were delivered in 1900-01, twenty each from Neilson and Company and Sharp, Stewart and Company. The class were gradually displaced by diesel shunters during the 1950s, with the last withdrawn in 1962. The class were however successful with only three failing to complete one million miles (1,600,000 km) during their lifetime, and No. 9830 managed to complete two million miles (3,200,000 km).