Changed flightList to an object, not array