updateCash method added