generated first trivial ruby result
some generalizations