<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def max_duration(self,value):
 		""" Sets the value of max duration 		Parameters 		value : float 			The value for max_duration 		Raises 		------ 		TypeError 			If max_duration is not a number. 		ValueError 			If max_duration is smaller than 0. 		"""

		if not value is None:
			if not type(value) in [float, int]:
				raise TypeError("max_duration needs to be specified as a number")
			if value<1.0:
				raise ValueError("max_duration needs to be greater than 1.0")
			value = float(value)
		self.__max_duration = value