added some ruby code