passenger class firstwe need class to store information related to single passenger we create passenger class for this purpose the complete implementation of this class is provided in listing the class will contain two data fields the first is an identification number used in the output of the event information the second field records the time the passenger arrives this value will be needed to determine the length of time the passenger waited in line before beginning service with an agent methods are also provided to access the two data fields an instance of the class is illustrated in figure listing the passenger class defined in the simpeople py module used to store and manage information related to an airline passenger class passenger creates passenger object def __init__selfidnumarrivaltime )self _idnum idnum self _arrivaltime arrivaltime gets the passenger' id number def idnumself return self _idnum gets the passenger' arrival time def timearrivedself return self _arrivaltime ticket agent class we also need class to represent and store information related to the ticket agents the information includes an agent identification number and timer to know when the transaction will be completed this value is the sum of the current time and the average time of the transaction as entered by the user finallywe need to keep track of the current passenger being served by the agent in order to identify the specific passenger when the transaction is completed the ticketagent class is implemented in listing and an instance of the class is shown in figure the passenger field is set to null referencewhich will be used to flag free agent the idnum(method simply returns the id assigned to the agent when the object is created while the isfree(method examines the passenger field to idnum arrivaltime passenger idnum stoptime passenger ticketagent figure sample passenger and ticketagent objects