refactored functions to use map and reduce, thanks for the reminder Dan
refactored some of the arraysanswers to use filter, map, and reduce