Add first version of ruby implementation