Example C extension in Ruby