Added the logic to build the nested list and updated the readme file.