Cooi JAPAN ruby implementation.