Passage: Emirates Flight 407 was a scheduled international passenger flight operated by Emirates from Melbourne to Dubai, using an Airbus A340-500 aircraft. On 20 March 2009, the flight failed to take off properly at Melbourne Airport, hitting several structures at the end of the runway before eventually climbing enough to return to the airport for a safe landing. Although no fatalities or injuries resulted, damage to the aircraft was severe enough for the event to be classified by Australian Transport Safety Bureau as an "accident". It has been described "as close as we have ever come to a major aviation catastrophe in Australia" by aviation officials.

Question: What type of Aribus was Flight 407?
A340-500