Code from the book Exploring Everything Things with R and Ruby