Refactored Withdraw() function