//This is An OOP Model of a bank account
//OOP is suitable for when you have relatively 
//few operations and and large data sets


//Base account model implements the standard features 

class Account {
	constructor(name, age, amount) {
		this._name = name;
		this._age = age;
		this._balance = amount;	
	}

	//deposit method for account class
	deposit(amount){
		this._balance += amount;
		return "TRANSACTION SUCCESSFUL: You have deposited " + amount;
	}
}


//export an instance 
module.exports = {Ade : new Account("Adeoluwa Adejumo", 5, 5000)} 
@@ -450,16 +450,210 @@
 ount;%0A%09%7D
+%0A%0A%09//withdraw method for account class%0A%09withdraw(amount)%7B%0A%09%09if (amount %3C this._balance) %7B%0A%09%09%09this._balance -= amount;%09%0A%09%09%09return %22TRANSACTION SUCCESSFUL: You have withdrawn %22 + amount;%0A%09%09%7D%0A%09%09%0A%09%7D
 %0A%7D%0A%0A%0A//e

create withdraw method for account class