Tree Structure in Chart of Accounts

I just create a tree structure for chart of accounts.