added a ruby code