code and outline for talk given at Stony Brook's CEWIT 2014 conference