Jan_K wrote:
> Chapter 9, exercise 1 (page 76)
 > ...

Perfect. I can't see any problems at all.

Let me add something, though. Instead of chomping the string, you can 
strip it. String#strip removes all whitespace from the beginning and end 
of the string, rather than just a single \n from the end.

Cheers,
Dave