Ruby code and sample files