problem with irb and ruby programming

I'reading "pragmatic programmers guide" on ruby-doc site.
this simple example, written on irb shell,

sorry, I have make a stupid mistake.
please, excuse me :frowning:

bye by fellons