Adding ruby solution to problem #8