Example cost function changed