added folding so that we can go through the list of people with out having to do recursion functions