Added horrible ruby solution