Added code to init method and started the list all agents method