Cost function now just gets the numbers and ignores everything else