moved checkSolvency fxn to the Bank class