pass init cash as a parameter