An exercise in Ruby programming consisting of: