Ruby sample code