Add getSum functionality.
Add usage of getSum.