input: Write a python function to extract data from HTML using BeautifulSoup.
  assert extract_data('<div class="some-class-name"><h3>Item1</h3><a href="link1"></a><span>$10</span></div>') == [{'name': 'Item1', 'link': 'link1', 'price': '$10'}]
  assert extract_data('<div class="some-class-name"><h3>Item2</h3><a href="link2"></a><span>$20</span></div><div class="some-class-name"><h3>Item3</h3><a href="link3"></a><span>$30</span></div>') == [{'name': 'Item2', 'link': 'link2', 'price': '$20'}, {'name': 'Item3', 'link': 'link3', 'price': '$30'}]
  assert extract_data('') == []
output: def extract_data(html):
      from bs4 import BeautifulSoup
      soup = BeautifulSoup(html, 'html.parser')
      result = []
      
      for div in soup.find_all('div', class_='some-class-name'):
          item = {}
          item['name'] = div.find('h3').text
          item['link'] = div.find('a')['href']
          item['price'] = div.find('span').text
          result.append(item)
      
      return result