Finished Gradient and Cost