Started working on a ruby version