/**
 * Account.java
 *
 * This Account class represents bank accounts that stores money for an owner.
 *
 * Author: (put your name here)
 */
class Account
{
// Instance variables
	private double balance;	// invariant: balance >= 0 (should never be negative)
	private String owner;

//Constructor
	public Account(String name)
	{
		balance = 0;
		owner = name;
	}

// Instance methods
	/** Deposits 'amount' into the account
	 */
	public void deposit(int amount)
	{
		balance = balance + amount;
	}

	/** Withdraws 'amount' from the account.
	 *	This only makes sense if amount <= balance.
	 *	This method should be re-written so that there is not a possibility of
	 *	having a negative balance.
	 */
	public void withdraw(int amount)
	{
		balance = balance - amount;
	}

	/* Returns the balance of the Account
	 */
	public int getBalance()
	{
		return balance;
	}

	/* Returns the owner of the Account
	 */
	public String getOwner()
	{
		return owner;
	}
}


