/** A band made up of three musicians. */
public class Band {
  
  /** The first musician in the band. */
  private Musician member1;
  
  /** The second musician in the band. */
  private Musician member2;
  
  /** The third musician in the band. */
  private Musician member3;
  
  /**
   * Create a new band with members m1, m2 and m3.
   */
  public Band(Musician m1, Musician m2, Musician m3) {
    this.member1 = m1;
    this.member2 = m2;
    this.member3 = m3;
  }
  
 /**
   * Get member one of the band.
   */
  public Musician getMemberOne() {
    return this.member1;
  } 

  /**
   * Get the hourly salary total for the band.
   */
  public double getTotalSalary() {
    return this.member1.getSalary() 
      + this.member2.getSalary() 
      + this.member3.getSalary();
  }
}
