add profit_sum method