class Airplane():
	
	def __init__(self, model, name, capacity, status, manufacturer, destination, when_free, flight_nr = ""):
		self.name = name
		self.model = model
		self.manufacturer = manufacturer
		self.capacity = capacity
		self.status = status
		self.when_free = when_free
		self.destination = destination
		self.flight_nr = flight_nr

	def __str__(self):		
		return "{},{},{},{},{}".format(self.name, self.model, self.manufacturer, self.capacity, self.status)

	def get_detailed_str(self):
		'''Returns a string which includes the plane's detailed information'''
		
		return "{},{},{},{},{},{},{},{}".format(self.name, self.model, self.manufacturer, self.capacity, self.status, self.when_free, self.destination, self.flight_nr)
