function is C.

Function example isn't really objective-c. Checkout other repos for proper objective-c functions.