add ruby solution to q013