incomplete ruby solution for 23