/** This is a bank account for our customer */
public class BankAccount {
  /** name of account holder */
  private String name ;
  /** balance in the bank account */
  /* this is an instance variable */
  private double balance;
  /** this method withdraws amount a from the 
   *  balance and returns the new balance
   */
  public double withdraw(double a) {
    balance = balance - a;
    return balance;
  }
  /** adds the name n to the BankAccount */
  public void setName(String n) {
    name = n;
  }
  /** return the BankAccount  name */
  public String getName(){
    return name;
  }
  /** deposit amount a into Bankaccount
   *  and return the new balance 
   */
  public double deposit(double b) {
    balance += b;
    return balance;
  }
}

