Project written by this tutorial http://ofps.oreilly.com/titles/9780596804824/chmath.html, Chapter 3.