coding examples and exercised from the book "Well-grounded Rubyist"