//version 3; handles both insufficient fund exception and 
// number format exception

public class Account
{       // data
	private double dBalance;
	
   // constructor
	public Account(double dAmt)
	{ 
		dBalance = dAmt;
	}
   // methods
	
	public void withdraw(Double dAmt) throws
	   InsufficientFundsException, NumberFormatException
	{   
            if (dAmt.doubleValue() > dBalance)
			
               throw new InsufficientFundsException("Amount > Balance");
            else
		dBalance = dBalance - dAmt.doubleValue();
	}
	

	public void deposit(Double dAmt) throws NumberFormatException
	{
		dBalance = dBalance + dAmt.doubleValue();
	}

	public String getBalance()
	{
		Double dBal;
		dBal = new Double(dBalance);
		return dBal.toString();
	}
}
