planning to write a ruby extension