ruby sample code and experiments