Cubic Function Definition