Linear recursion playground, in Ruby