<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_soup(self,soup):
 		""" 			Factory Pattern. Fetches author data from given soup and builds the object 		"""
	
		if soup is None or soup is '':
			return None
		else:	
			author_name = soup.find('em').contents[0].strip() if soup.find('em') else ''
			author_image = soup.find('img').get('src') if soup.find('img') else ''
			author_contact = Contact.from_soup(self,soup)
			return Author(author_name,author_image,author_contact)