Sending a function as an argument to a function - Convex Community