Adding ruby code