include method to calculate totals

resolves #11