added the code for populating the list.