The B class was designed as a larger, more powerful locomotive to handle mainline freight trains that were becoming too heavy for locomotives of the
O,
P, and
T classes. The first was built in NZR's own
Addington Workshops in
Christchurch and entered service on 4 May 1899, and an order was placed with
Sharp, Stewart and Company of
Glasgow,
Scotland to supply four more. The first engine from Scotland entered service on 20 December 1899, followed by the other three within the next month. Over the course of 1901–1903, five more Bs were built in Addington Workshops, with the last entering service in May 1903. The locomotives were advanced for their time, featuring a new
piston valve design and a modified form of
Walschaerts valve gear, and they were designed to haul freight trains on flat lines and on the hilly section of the
Main South Line between
Oamaru and Dunedin. For the time, these were quite significant figures. The Addington engines were unusual in the fact that they employed a screw reverse configuration, instead of the standard reversing lever. They also had fold-down seats for both driver and fireman. Only a couple of years after their arrival in New Zealand, three of the four Sharp, Stewart models entered NZR's Addington and Hillside (
Dunedin) Workshops to be rebuilt, emerging as the
WE class 4-6-4T
tank locomotives. ==Operation and improvement==