Adds group_line_items_and_sum_quantities method