My Ruby code