Examples from http://ruby.learncodethehardway.org/