Modified getAccounts method to return a list of Account objects