Added ruby code