You may find this article and its example enlightening:
http://teachingkids.railsbridge.org/2009/08/15/teaching-ruby-to-high-school-girls.html

It's not exactly what you want, but it's close enough to get you going.