Added printAccounts method.
printAccounts method added