Ruby C extension examples