made some ruby code