Ruby Sample code