schema with cost in tasks