add get_flights method