My ruby code