ruby implementation
open sourcing it