a captain is used for flying an aircraft