Extracting a method from updateTheBalance() method in class AccountImpl, and moved it to class TransactionImpl.