1. 2

Complete with literate sourcecode in coffeescript \o/

  1.