added ruby solution