add rinruby to gemfile
Added R code to ruby file