class InvestorRole extends CustomerRole {

  private String name;

  private long amountToInvest;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public long getAmountToInvest() {
    return amountToInvest;
  }

  public void setAmountToInvest(long amountToInvest) {
    this.amountToInvest = amountToInvest;
  }

  public String invest() {<FILL_FUNCTION_BODY>}
}

    return String.format("Investor %s has invested %d dollars", name, amountToInvest);
  
<methods>public non-sealed void <init>() <variables>