add ruby solution to q016