The London and North Eastern Railway Class P2 was a class of 2-8-2 steam locomotives designed by Sir Nigel Gresley for working heavy express trains over the harsh Edinburgh to Aberdeen Line. As they were to serve on Scottish expresses, they were given famous names from Scottish lore. Six locomotives of the class were built; introduced between 1934 and 1936. In 1936, the Class P2 were given streamlined fronts, similar to that of the Class A4. Between 1943 and 1944 the class were rebuilt under Gresley's successor Edward Thompson into the LNER Thompson Class A2/2 4-6-2 type.