added Task#total_cost