moving BalanceManager class for own file