input: Write a python function to extract product names and prices from a given URL using BeautifulSoup and Requests libraries.
  assert get_data('http://example.com/test1') == [('Product1', '$10'), ('Product2', '$20')]
  assert get_data('http://example.com/test2') == [('ProductA', '$15'), ('ProductB', '$25'), ('ProductC', '$35')]
  assert get_data('http://example.com/test3') == []
output: def get_data(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      products = []
      product_elements = soup.find_all(class_='product')
      
      for product in product_elements:
          name = product.find(class_='name').text
          price = product.find(class_='price').text
          products.append((name, price))
      
      return products