use Bank;
use BankAccount;

$bank = Bank->new("Bank of Utopia");

$accountNo = $bank->newAccount("Alex");
$bank->deposit($accountNo,1200);
$bank->withdraw($accountNo,340);

$accountNo = $bank->newAccount("Brad");
$bank->deposit($accountNo,500);
$bank->withdraw($accountNo,140);


$accountNo = $bank->newAccount("Chris");
$bank->deposit($accountNo,5540);
$bank->withdraw($accountNo,300);

$accountNo = $bank->newAccount("Dan");
$bank->deposit($accountNo,1000);
$bank->deposit($accountNo,150);
$bank->withdraw($accountNo,300);

$bank->applyInterests();

$bank->listAccounts;


# This should produce the output below
# Initial account # is a number of your choice
#
#-------------------------------
#Account holder: Dan
#Account number: 1003
#Account balance: 858.5
#-------------------------------
#-------------------------------
#Account holder: Chris
#Account number: 1002
#Account balance: 5292.4
#-------------------------------
#-------------------------------
#Account holder: Brad
#Account number: 1001
#Account balance: 363.6
#-------------------------------
#-------------------------------
#Account holder: Alex
#Account number: 1000
#Account balance: 868.6
#-------------------------------
#
