rudimentary implementation of fun2
homework 5 preludes
folds: slightly more wholemealish