made gatherAllRestaurants function