LoItfos Ruby code