cf.Objective() sample code