input: Write a python function to scrape product names and prices from a given URL using BeautifulSoup.
  assert scrape("http://example.com/products/") == {'name': ['Product1', 'Product2'], 'price': ['$10', '$20']}
  assert scrape("http://example2.com/items/") == {'name': ['Item1', 'Item2', 'Item3'], 'price': ['$5', '$15', '$25']}
  assert scrape("http://example3.com/store/") == {'name': ['Thing1', 'Thing2'], 'price': ['$30', '$40']}
output: def scrape(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      products = {'name': [], 'price': []}
  
      # Assuming the HTML structure
      product_elements = soup.select('.product')
      for product in product_elements:
          name = product.select_one('.name').text.strip()
          price = product.select_one('.price').text.strip()
          products['name'].append(name)
          products['price'].append(price)
          
      return products