example for ruby