coursera functional programming: Assns 0 & 1