my attempt at the Ruby Koans from http://rubykoans.com