fleshed out the CashFlows class