added BalanceManager class