Solution to ruby Koans