Ruby Sample Code