added ruby code and updated readme