added:

	Total Cost function.