Implementations in Ruby