input: Write a function to scrape titles and descriptions from a webpage using BeautifulSoup.
  assert scrape_data('http://example.com') == [{'title': 'Example Title 1', 'description': 'Example description 1'}, {'title': 'Example Title 2', 'description': 'Example description 2'}]
  assert scrape_data('http://example.com/another-page') == [{'title': 'Another Title 1', 'description': 'Another description 1'}, {'title': 'Another Title 2', 'description': 'Another description 2'}]
output: def scrape_data(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      data = []
      for item in soup.find_all('div', class_='item'):
          title = item.find('h2', class_='title').text
          description = item.find('p', class_='description').text
          data.append({'title': title, 'description': description})
      
      return data