History of the Baldwin locomotive works, 1831-1907