Boeing and American Airlines agree on order for up to 300 airplanes