static int[] calculateVendingMachineChange(int[] coin_totals, BigDecimal balance) {

        String[] change_denomination = {"1.0", "0.5", "0.2", "0.1"};

        for(int i = 0; i < coin_totals.length; i++) {
            balance = change(coin_totals, balance, change_denomination[i], i);
        }

        return coin_totals;
    }