Solution of ruby koans