input: Write a python function to extract text from HTML tags with a specific class name using BeautifulSoup.
  assert extract_text_from_class('<div class="example-class">Hello</div>')==['Hello']
  assert extract_text_from_class('<div class="example-class">World</div>')==['World']
  assert extract_text_from_class('<div class="example-class">Hello</div><div class="example-class">World</div>')==['Hello', 'World']
output: def extract_text_from_class(html):
      from bs4 import BeautifulSoup
  
      soup = BeautifulSoup(html, 'html.parser')
      elements = soup.find_all(class_='example-class')
      return [element.get_text() for element in elements]