I figured out a better challenge 1 with combinatorics, also figured out non-anonymous gists https://gist.github.com/1041697