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: Then , its first Locomotive and Carriage Superintendent Matthew Kirtley decided to their works and persuaded that the railway should build their own rolling stock instead of than buying it .