<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_support(self,date,on='low',mode='starttoend',text=None,**kwargs):
 		""" 		Adds a support line to the QuantFigure 		Parameters: 			date0 : string 				The support line will be drawn at the 'y' level 				value that corresponds to this date. 			on : string 				Indicate the data series in which the 				support line should be based. 					'close' 					'high' 					'low' 					'open' 			mode : string 				Defines how the support/resistance will 				be drawn 					'starttoened' : (x0,x1) 					'fromstart' : (x0,date) 					'toend' : (date,x1) 			text : string 				If passed, then an annotation will be added 				to the support line (at mid point) 		 		kwargs:	 			from_strfmt : string 				Defines the date formating in which 				date0 and date1 are stated. 				default: '%d%b%y'					 			to_strfmt : string 				Defines the date formatting 				to which it should be converted. 				This should match the same format as the timeseries index. 				default : '%Y-%m-%d'		 		"""

		d={'kind':'support','date':date,'mode':mode,'on':on,'text':text}
		d.update(**kwargs)
		self.trendlines.append(d)