Learning Ruby from http://pragprog.com/book/ruby4/programming-ruby-1-9-2-0