added a ruby code snippet