import java.util.List;import java.util.ArrayList;public class Customer extends Person { Advisor advisor; List checkingAccountList; List savingAccountList; public Customer() { this.checkingAccountList = new ArrayList(); } public Customer(String firstName, String lastName) { Person p = new Person(firstName,lastName); this.checkingAccountList = new ArrayList(); this.savingAccountList = new ArrayList(); } public String toString() { return "Customer: " + this.getFirstName() + " " + this.getLastName() + "Advisor: " + this.advisor; } public void addCheckingAccount(CheckingAccount ca) { this.checkingAccountList.add(ca); } public void addSavingAccount(SavingAccount sa) { this.savingAccountList.add(sa); } //add an Advisor to a customer public void addAdvisor(Advisor advisor) { this.advisor = advisor; }}