add ruby sample code