ok how could I implement it as c script?
thanks