added method to create function from array of countries, worldwide