modify the shoppinglist class: add function settleAccounts and function output