Add cost function for the problem