Functions involving Lists and Structures