public class BankRun2 {

    public static void main(String[] args) {

	// create a bank account with 200 balance
	Bank2 account = new Bank2(200);

	// deposit 75 into the account
	account.deposit(75);

	// try to withdraw 250 from the account and 
	// print a message indicating success or failure
	boolean success = account.withdraw(250);
	if (success) {
	    System.out.println("$250.00 successfully withdrawn");
	} else {
	    System.out.println("$250 withdrawal rejected");
	}

	// print the balance of the account
	System.out.println("Balance for account: " + account.getBalance());
	// print balance with toString
	System.out.println("toString representation: " + account.toString() );
    }
} //BankRun

