added a listFiles method