Problem 5
Higher order functions
Writing some functions myself
More folds!