Added ruby solution