Implement with combination of C and Obj-C