added ruby code for real this time