sample for ctypes