implementation of list structure added
sorting of list added