Create black box function