updated ctypes example