public class BrokerageAccount {
    String accountNumber;
    Customer customer;
    Set investments;
  // pominęliśmy konstruktory itp.

  public Customer getCustomer() {
    return customer;
  }

  public Set getInvestments() {
    return investments;
  }
}
