Added list data structure and functions