Ruby Test from http://www.humblelittlerubybook.com/book/html/chapter0.html