listAccounts method added