Homework 4: folds and comprehensions.