my own solution to ruby koans