add ruby solution to q005