examples and homerworks from the coursera functional programming class