Railway companies established in 1840