Added a demo for calling listEntities.