How can I write O Spec for the company subtotals and totals. Please give me some Code samples.