Ruby sample code/practice from the book "Programming Ruby"