Modified AccountService.getAccounts method to return a list of Account
objects