Original: Railway building began at Derby Works in 1840, when the North Midland Railway, the Midland Counties Railway and the Birmingham and Derby Railway set up engine sheds as part of their Tri Junct Station.
Simplified: These three merged in 1844 to form the Midland Railway.