When Reading Ruby Programming, Some code practice