Ruby solutions